package cn.net.wanji.mapper;


import cn.net.wanji.entity.AntennaInfo;
import cn.net.wanji.entity.InspectionStatus;
import cn.net.wanji.entity.VehicleRsuInfo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author guodejun
 * @createTime 2022/11/1 13:29
 * @description
 */
@Mapper

//@TableSplitTarget(rules={@TableSplitRule(tableName="vehicle_rsu_info",paramName="detectTime",paramErIdName = "erId",targetName=StrategyManager._YYYYMM01)})
public interface DataReceiveMapper {

    void insertVehicleRsuInfo(@Param("vehicleRsuInfo") VehicleRsuInfo vehicleRsuInfo);
    VehicleRsuInfo selectVehicleRsuInfo(@Param("vehicleRsuInfo") VehicleRsuInfo vehicleRsuInfo);

//    List<VehicleRsuInfo> selectVehicleRsuInfos(@Param("vehicleRsuInfo") VehicleRsuInfo vehicleRsuInfo);


    int insertInspectionStatus(@Param("inspectionStatus")InspectionStatus inspectionStatus);

    int deleteInspectionByInfo(@Param("recordId") String recordId,@Param("unlawfulMold")String unlawfulMold);

    void updateInspectionByRecordIdAndUnlawfulMold(@Param("inspectionStatus")InspectionStatus inspectionStatus);

    List<String> selectByDate(@Param("date") String date);
    void deleteVehicleRsuInfoByRecordId(@Param("recordId") String recordId);

    void batchInsertClickhouse(List<VehicleRsuInfo> vehicleRsuInfoList);


    void addAntennaInfo(@Param("antennaInfo")AntennaInfo antennaInfo);
}
